package cn.aib.eduservice.client;

import cn.aib.commonutils.R;
import cn.aib.eduservice.client.impl.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {
    //服务方法
    @DeleteMapping("/eduvod/video/deleteAlyVideo/{id}")
    public R deleteVideoById(@PathVariable("id") String id);

    //删除多个视频
    @DeleteMapping("/eduvod/video/deleteBatchAlyVideo")
    public R deleteBatchVideo(@RequestParam("ids") List<String> ids);
}
